package com.hy.heath.service;

import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.baomidou.mybatisplus.extension.service.IService;
import com.hy.heath.pojo.entity.HealthRecord;
import java.util.List;

public interface HealthRecordService extends IService<HealthRecord> {
    /**
     * 根据用户ID查询就医记录
     */
    List<HealthRecord> listByUserId(Integer userId);

    /**
     * 分页查询就医记录
     */
    Page<HealthRecord> pageRecords(Page<HealthRecord> page, Integer userId);
}